package com.ly.common.running.handler;

import java.util.HashMap;
import java.util.Map;

/**
 * @author luoyana
 * @version V1.0
 * @ClassName ThreadLocalManager
 * @description 线程管理
 * @update 2023/3/15
 */
public final class ThreadLocalManager {
    public static ThreadLocal<Map<String,Object>> threadLocal = ThreadLocal.withInitial(HashMap::new);

    public static void put(String var1,Object var2){
        threadLocal.get().put(var1,var2);
    }

    public static Object get(String var1){
        return threadLocal.get().get(var1);
    }
}
